﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Entetities;

namespace DAL
{
    public class KhachHangDiaChiDAL
    {
        DataHelper dh;
        public KhachHangDiaChiDAL()
        {
            dh = new DataHelper();
        }
        public int add_KhachHangDiaChi(KhachHang kh, DiaChi dc, int loaidc)
        {
            SqlParameter p1 = new SqlParameter("@KhachhangId", kh.KhachhangId);
            SqlParameter p2 = new SqlParameter("@Madiachi", dc.Madiachi);
            SqlParameter p3 = new SqlParameter("@Loaidiachi",loaidc);
            return dh.ExecuteSP("add_khachhang_diachi", p1, p2, p3);
        }
    }
}
